<template>
	<view class="page" :style="'height:' + height + 'rpx'">
		<view  class="box">
			<view class="image">
				<!-- <img src="../../static/images/happy.png" /> -->
			</view>
			<view class="tip">
				<view>
					寒假快乐!
				</view>
<!-- 				<view>
					您的课程表正在更新中，
				</view> -->
<!-- 				<view>
					更新完成后及时开放~
				</view>
				<view style="margin-top: 15rpx;">
					造成您的不便，敬请谅解！
				</view> -->
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				height: 0
				
			}
		},
		created() {
			let that = this;
			console.log('执行')
			uni.getSystemInfo({
				success: function(res) {
					let pxToRpxScale = 750 / res.windowWidth;
					console.log(111,res.statusBarHeight * pxToRpxScale);
					console.log(res.windowHeight);
					console.log('执行')
					that.height = res.windowHeight * pxToRpxScale;
				}
			});
		},
		methods: {
			
		}
	}
</script>

<style lang="scss" scoped>
	.page {
		width: 100%;
		display: flex;
		flex-wrap: wrap;
		align-items: center;
		justify-content: center;
		
		.box {
			height: 700rpx;
			width: 80%;
			.image {
				width: 100%;
				text-align: center;
				// margin-top: 40rpx;
				img {
					width: 80%;
					height: 450rpx;
				}
			}
			.tip {
				width: 100%;
				margin-top: 40rpx;
				text-align: center;
				line-height: 52rpx;
				letter-spacing: 3rpx;
				font-size: 50rpx;
				color: #6f6f6f;
				
			}
		}

	}
</style>
